<!-- guarantee_payment_complete_submit.jsp -->
<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF_8" isELIgnored="false"%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
	<%-- <form name="returnfunc" method="POST"
		action="${sessionScope.gopay_webtest_URL.dom}${sessionScope.gopay_webtest_URL.apply}"
		target="_blank"> --%>
		
	<form name="returnfunc" method="POST" action="
        <c:choose>
    <c:when test="${sessionScope.gopay_webtest_URL_Name=='自定义'}">
    ${sessionScope.gopay_webtest_URL.dom}
    </c:when>
    <c:otherwise>
		${sessionScope.gopay_webtest_URL.dom}${sessionScope.gopay_webtest_URL.apply}
		    </c:otherwise>
    </c:choose>" >
    
	<%-- <input type="hidden" id="url" name="url"
					value="${payinfo.url}" size="50" /> --%>
		<input type="hidden" id="gopayFeeAmt" name="gopayFeeAmt"
			value="${payinfo.gopayFeeAmt}" size="50" /> <input type="hidden"
			id="tranCode" name="tranCode" value="${payinfo.tranCode }" size="50" />

		<input type="hidden" id="merchantID" name="merchantID"
			value="${payinfo.merchantID }" size="50" /> <input type="hidden"
			id="merOrderNum" name="merOrderNum" value="${payinfo.merOrderNum }"
			size="50" /> <input type="hidden" id="tranDateTime"
			name="tranDateTime" value="${payinfo.tranDateTime }" size="50" /> <input
			type="hidden" id="orgtranDateTime" name="orgtranDateTime"
			value="${payinfo.orgtranDateTime }" size="50" /> <input
			type="hidden" id="orgOrderNum" name="orgOrderNum"
			value="${payinfo.orgOrderNum }" size="50" /> <input type="hidden"
			id="authID" name="authID" value="${payinfo.authID }" size="50" /> <input
			type="hidden" id="tranAmt" name="tranAmt" value="${payinfo.tranAmt }"
			size="50" /> <input type="hidden" id="virCardNoIn"
			name="virCardNoIn" value="${payinfo.virCardNoIn }" size="50" /> <input
			type="hidden" id="refundVirCardNoIn" name="refundVirCardNoIn"
			value="${payinfo.refundVirCardNoIn }" size="50" /> <input
			type="hidden" id="version" name="version" value="${payinfo.version }"
			size="50" /> <input type="hidden" id="charset" name="charset"
			value="${payinfo.charset }" size="50" /> <input type="hidden"
			id="language" name="language" value="${payinfo.language }" size="50" />

		<input type="hidden" id="signType" name="signType"
			value="${payinfo.signType }" size="50" /> <input type="hidden"
			id="merRemark1" name="merRemark1" value="${payinfo.merRemark1 }"
			size="50" /> <input type="hidden" id="merRemark2" name="merRemark2"
			value="${payinfo.merRemark2 }" size="50" /> <input type="hidden"
			id="signValue" name="signValue" value="${payinfo.signValue}"
			size="50" /> <input type="hidden" id="VerficationCode"
			name="VerficationCode" value="${payinfo.verficationCode}" size="50" />

	</form>
	<script>
		
	<%-- 为了防止用户登录后点击提交后退到登录页面，对document.returnfunc.submit()增加判断条件if(0==history.length) --%>
		if ($.browser.msie) {
			if (0 == history.length)
				document.returnfunc.submit();
		} else if ($.browser.mozilla) {
			if (1 == history.length)
				document.returnfunc.submit();
		} else if ($.browser.opera) {
			if (1 == history.length)
				document.returnfunc.submit();
		} else {//for webkit(Safari, Chrome...)
			if (1 == history.length)
				document.returnfunc.submit();
		}
	</script>
